package demo.fristserice.service.feign;

import demo.fristserice.common.Demo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author wqf
 * @date 2019/11/15 15:09
 */
@FeignClient("DEMO-SERVICE")
@Service
public interface FeignClientDemo {
    @PostMapping("/demo/getlist")
    @ResponseBody
    List getlist(@RequestBody Demo demo);
}
